package facade.service.impl;

import adapter.GetData;
import adapter.service.WebChatAdapter;
import facade.service.GroupData;
import pay.webchat.WebChatUtil;

/**
 * 获取微信支付的统一接口
 * @author ChangSir
 *
 */
public class GetWebChat implements GroupData {

	//实际上也使用了facade模式
	@Override
	public void getData() {
		GetData gdi = new WebChatAdapter(new WebChatUtil());
		gdi.open();
		gdi.get();
		gdi.close();
	}

}
